import time

from po.base.web_base_page import WebBasePage

class Shunt_guifei_page(WebBasePage):


    # 业务操作  ---------新增
    def add_guifei(self,jfsj,jfje,beizhu):
        #self.clickElement("chuli_button")
        self.clickElement("guifei_button")
        time.sleep(1)
        self.clickElement("danwei_button")
        self.clickElement("chepai_button")
        self.clickElement("chepainum_button")
        self.inputByLocatorName("jfsj_input",jfsj)
        self.inputByLocatorName("jiaofeije_input",jfje)
        self.clickElement("jiaofeidw_input")
        time.sleep(1)
        self.clickElement("xzjiaofeidw_input")
        self.clickElement("jiaofeilx_input")
        time.sleep(1)
        self.clickElement("qdjiaofeije_input")
        self.clickElement("jinbanre_input")
        time.sleep(1)
        self.clickElement("qdjinbaner_input")
        self.inputByLocatorName("beizhu_input", beizhu)
        self.clickElement("qdguifei_inout")

    # 业务操作  ---------搜索
    def sousuo_guifei(self, chepai):

        self.inputByLocatorName("chuche_sousuo_input", chepai)
        self.clickElement("sousuo_button")
        time.sleep(1)

 # 业务操作  ---------删除

    def del_jiayou(self):
        self.clickElement("xzjiayu_button")
        self.clickElement("guifeisc_button")
        self.quedingtc()

